<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>签约管理</title>
		<link rel="stylesheet" href="__AGENT__/css/iconfont.css" />
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right">
					<div class="rigtop">
						<span class="title">签约管理</span>
					</div>
					<div class="indrig_con qianyue_con">
						<table class="zizh_table1">
							<thead>
								<tr>
									<th class="num1">签约通道</th>
									<th class="num2">签约产品</th>
									<th class="num3">签约状态</th>
									<th class="num4">启用状态</th>
									<th class="num5">收款参数</th>
									<th class="num6">签约费率</th>
									<th class="num7">操作</th>
								</tr>
							</thead>
							<tbody id="tbody">
								<tr>
									<td rowspan="2">网商银行</td>
									<td>支付宝</td>
									<td>成功签约</td>
									<td rowspan="2">
										{if condition="$data.is_state== 1"} 启用 {else /} 未启用 {/if}
									</td>
									<td rowspan="2">
										<p>开户名称: {$qianyue.account_name}</p>
										<p>开户银行: {$qianyue.open_bank}</p>
										<p>银行账号: {$qianyue.bank_account}</p>
										<p>审核状态: 
											{if $qianyue.state == 1} 
											通过 
											{elseif $qianyue.state == 2} 
											未审核  
											{else} 
											未通过 
											{/if}
										</p>
									</td>
									<td rowspan="2">{$data.cb_huilu}%</td>
									<td rowspan="2">
										{if condition="$data.is_state == 1"}
										<a href="{:url('index/qianyue_step5')}">查看资料</a>
										{else /}
										<a href="{:url('index/qianyue_step1')}">去签约</a>
										{/if}
									</td>
								</tr>
								<tr>
									<td>微信</td>
									<td>成功签约</td>

								</tr>
							</tbody>
						</table>

					</div>
				</div>
			</div>
		</div>
		{include file="public/footer" /}
	</body>

</html>
<script>
	/*启用*/
	function qiyong(lid, tongdao) {
		layer.confirm('您确定要修改吗？', {
			btn: ['确定', '取消'] //按钮
		}, function() {
			$.ajax({
				url: "{:url('index/qiyong')}",
				data: {
					lid: lid,
					tongdao: tongdao
				},
				dataType: 'json',
				success: function(data) {
					layer.msg("修改成功", {
						icon: 1,
						time: 1000
					}, function() {
						location.href = "{:url('index/qianyue')}";
					});
				}
			})
		})
	}
</script>